const app = getApp()

Page({
  data: {
  },
  onLoad() {
  },
  onShow(){
    if (typeof this.getTabBar === 'function' && this.getTabBar()) {
      this.getTabBar().setData({
        active: 'home'
      })
    }
    app.ajax.requestGet(app.api.test,{}).then((res) => {
      console.log(res)
    })
  }
})
